home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / streaming / qtstreamsplicer / qtstreamsplicer.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.7 KB  |  67 lines

  1. //////////
  2. //
  3. //    File:        QTStreamSplicer.c
  4. //
  5. //    Contains:    Code to splice a still frame onto a streamed movie.
  6. //
  7. //    Written by:    Dan Crow
  8. //    Revised by: Tim Monroe
  9. //
  10. //    Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  11. //
  12. //    Change History (most recent first):
  13. //
  14. //       <1>         05/18/99    rtm        first file from Dan Crow
  15. //       
  16. //
  17. //
  18. //////////
  19.  
  20.  
  21. //////////
  22. //
  23. // header files
  24. //
  25. //////////
  26.  
  27. #include "ComApplication.h"
  28.  
  29.  
  30. //////////
  31. //
  32. // constants
  33. //
  34. //////////
  35.  
  36. #define kSaveSplicePrompt            "Save spliced movie file as:"
  37. #define kSaveSpliceFileName            "Spliced.mov"
  38.  
  39. #define kSpliceOntoDialogID            2000
  40. #define kSpliceOverDialogID            2001
  41.  
  42. #define kSpliceButtonDone            1
  43. #define kSelfContainedCheckbox        2
  44. #define kSpliceScaleCheckbox        3
  45. #define kSpliceDuration                4
  46.  
  47. #define kSpliceWidth                4
  48. #define kSpliceHeight                5
  49.  
  50. #define kOneSecond                    600
  51.  
  52.  
  53. //////////
  54. //
  55. // function prototypes
  56. //
  57. //////////
  58.  
  59. OSErr                        QTSplicer_SpliceImageOntoStream (void);
  60. OSErr                        QTSplicer_SpliceImageOverStream (void);
  61. OSErr                        QTSplicer_CreateSplicedOntoMovie (FSSpec theImageSpec, FSSpec theMovieSpec, Movie theSplicedMovie, Boolean isScaleImage, Boolean isSelfContained, long theImageDuration);
  62. OSErr                        QTSplicer_CreateSplicedOverMovie (FSSpec theImageSpec, FSSpec theMovieSpec, Movie theSplicedMovie, Boolean isScaleImage, Boolean isSelfContained, long theImageHeight, long theImageWidth);
  63. Boolean                        QTSplicer_FileContainsStream (FSSpec theMovieFile);
  64. OSErr                        QTSplicer_SetSelectionTimes (MovieController theController, TimeValue theTime1, TimeValue theTime2);
  65. OSErr                        QTSplicer_SetCurrentTime (MovieController theController, TimeValue theTime);
  66. OSErr                        QTSplicer_AddVideoTrackFromGWorld (Movie *theMovie, GWorldPtr theGW, short theWidth, short theHeight, long theImageDuration);
  67.